package com.yilouwangye.mvc;

public class Car {
    String bland;
    Integer price;

    public Car(String bland, Integer price) {
        this.bland = bland;
        this.price = price;
    }

    public String getBland() {
        return bland;
    }

    public void setBland(String bland) {
        this.bland = bland;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Car{" +
                "bland='" + bland + '\'' +
                ", price=" + price +
                '}';
    }

    public static void main(String[] args) {
        Car car = new Car("Ferrari",20000);
        System.out.println(car.toString());
    }
}
